import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
import vitePluginImp from 'vite-plugin-imp'

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
		alias: {
			  "@": path.resolve(__dirname, "src"),
			  "@comps": path.resolve(__dirname, "src/components"),
			  "@views": path.resolve(__dirname, "src/views"),
		},
  },
  plugins: [
	vue(),
	vitePluginImp({
		libList: [
		  {
			libName: 'vant',
			style(name) {
			  return `vant/es/${name}/index.css`
			}
		  }
		]
	})
  ],
  server:{
	  open:true//自动打开网页
  },

})
